@layout("/backend/common/_container.html"){
<#Hidden id="indexHeaderId" value="${indexHeaderMap.id}"/>
<#Hidden id="entityId" value=""/>
<div>
    <span>指标名称</span>
    <input class="textbox" id="indexHeaderDesc" style="width: 200px;" readonly="true" value="${indexHeaderMap.title}"/>
</div>
<div class="hisui-panel" title="分子" style="height:260px;padding:10px;overflow: hidden"
     data-options="headerCls:'panel-header-card-gray'">
    <div style="height:20%;">
        <span style="padding-left: 10px">表达式</span>
        <input class="textbox" style="width: 250px;" id="express" value="${indexHeaderMap.express}"/>
        <#Button name="保存" id="btnSave" icon="icon-w-save"
        clickFun="SdsIndexField.editExpress()"/>
    </div>
    <div>
        <#Button name="添加" id="addFItem" icon="icon-add" plain="true" clickFun="SdsIndexField.addFItem()"/>
        <#Button name="保存" id="saveFItem" icon="icon-save" plain="true"
        clickFun="SdsIndexField.saveFItem()"/>
        <#Button name="删除" id="delFItem" icon="icon-cancel" plain="true"
        clickFun="SdsIndexField.delFItem()"/>
        <div style="height: 130px;overflow-y: auto">
        <#EditableTable id="SdsIndexFieldTable"/>
        </div>
    </div>
</div>
<div class="hisui-panel" title="分母" style="height:260px;padding:10px;overflow: hidden"
     data-options="headerCls:'panel-header-card-gray'">
    <div style="height:20%;">
        <span style="padding-left: 10px">表达式</span>
        <input class="textbox" style="width: 250px;" id="expressDen" value="${indexHeaderMap.expressDen}"/>
        <#Button name="保存" id="btnSaveDen" icon="icon-w-save"
        clickFun="SdsIndexFieldDen.editExpress()"/>
    </div>
    <div>
        <#Button name="添加" id="addFItemDen" icon="icon-add" plain="true" clickFun="SdsIndexFieldDen.addFItem()"/>
        <#Button name="保存" id="saveFItemDen" icon="icon-save" plain="true"
        clickFun="SdsIndexFieldDen.saveFItem()"/>
        <#Button name="删除" id="delFItemDen" icon="icon-cancel" plain="true"
        clickFun="SdsIndexFieldDen.delFItem()"/>
    </div>
    <div style="height: 130px;overflow-y: auto">
    <#EditableTable id="SdsIndexFieldDenTable"/>
    </div>
</div>
<script type="text/javascript">
    var formItems =${formItems!};
</script>
<script src="${ctxPath}/static/backend/sds/sdsindexheader/sdsindexheader_compare.js"></script>
@}
